<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <link rel="stylesheet" href="css/share.css">
    <title>{{.Name}}学生信息</title>
    <style>
        body {
            font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
            background: linear-gradient(to right, #ece9e6, #ffffff);
            margin: 0;
            display: flex;
            flex-direction: column;
            align-items: center;
            justify-content: center;
            height: 100vh;
        }
        header {
            background-color: #62b0f0;
            width: 100%;
            padding: 1.5em 0;
            text-align: center;
            color: white;
            box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
        }
        h1 {
            margin: 0;
            font-size: 2.5em;
            color: rgb(0, 0, 0); /* 设置 h1 颜色 */
        }
        main {
            background-color: #ffffff;
            padding: 2em;
            border-radius: 10px;
            box-shadow: 0 6px 12px rgba(0, 0, 0, 0.1);
            width: 80%;
            max-width: 600px;
            text-align: center;
            margin: 2em 0;
        }
        table {
            width: 100%;
            border-collapse: collapse;
            margin-top: 1.5em;
        }
        th, td {
            padding: 1em;
            border: 1px solid #dddddd;
            text-align: left;
            font-size: 1.2em;
        }
        th {
            background-color: #f2f2f2;
            font-weight: bold;
        }
        tr:nth-child(even) {
            background-color: #f9f9f9;
        }
        tr:hover {
            background-color: #f1f1f1;
        }
    </style>
</head>
<body>
    <header>
        <h1>学生信息--{{.Name}}</h1>
    </header>
    <main>
        <table>
            <tr>
                <th>字段</th>
                <th>内容</th>
            </tr>
            <tr>
                <td>姓名</td>
                <td>{{.Name}}</td>
            </tr>
            <tr>
                <td>语文</td>
                <td>{{.Chinese}}</td>
            </tr>
            <tr>
                <td>数学</td>
                <td>{{.Math}}</td>
            </tr>
            <tr>
                <td>英语</td>
                <td>{{.English}}</td>
            </tr>
        </table>
    </main>
</body>
</html>
